package Java练习.判断;

import java.util.Scanner;

public class if_practice {
    public static void main(String[] args) {
        int price=1000;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的会员等级");
        int vip=sc.nextInt();
        if(vip==1){

            System.out.println("实际支付的价格为:"+(price*0.9));
        } else if (vip==2) {
            System.out.println("实际支付的价格为:"+(price*0.8));

        } else if (vip==8) {
            System.out.println("实际支付的价格为:"+(price*0.7));
        }else {
            System.out.println("非会员!!");
        }
    }
}
